package com.sdkx.app.model;

import com.sdkx.app.util.CharacterParser;

import org.litepal.crud.LitePalSupport;

/**
 * 添加到地图上的可视对象基类
 */
public class ViewObject extends LitePalSupport {
    private String name;//名称
    private String pyname;//名称的拼音
    private String xsname;//名称的拼音首字母组合，如名称为山东，此值为sd

    public String getName() {
        return name;
    }

    public void setName(String na) {
        this.name = na;
        setPyname(CharacterParser.getInstance().getSelling(name));
        setXsname(CharacterParser.getInstance().getSellingSX(name));
    }

    public String getPyname() {
        return pyname;
    }

    public void setPyname(String pyname) {
        this.pyname = pyname;
    }

    public String getXsname() {
        return xsname;
    }

    public void setXsname(String xsname) {
        this.xsname = xsname;
    }
}
